package com.zzyl.nursing.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.member.domain.Reservation;
import com.zzyl.nursing.member.vo.AppointmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MemberReservationMapper extends BaseMapper<Reservation> {
    List<AppointmentVo> selectInsideTime(@Param("startTime") Date startTime,
                                         @Param("endTime") Date endTime);

    Integer cancelledTimes(@Param("startTime") Date startTime,
                           @Param("endTime") Date endTime,
                           @Param("userId") Long userId);
}
